package com.vueapi.controller.web;

import com.vueapi.annotation.OperationLog;
import com.vueapi.annotation.VisitLog;
import com.vueapi.service.WebIndexService;
import com.vueapi.utils.ResultUtils;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @Classname WebIndexController
 * @Description TODO
 * @Created by 赵宏建
 * @Date 2022/9/27 11:10
 * @Version 1.0.0
 */
@RestController
@RequestMapping("/web/index")
public class WebIndexController {

    @Resource
    private WebIndexService indexService;

    @VisitLog
    @GetMapping("/getBlogInfo")
    public ResultUtils getBlogInfo(){
        return indexService.getBlogInfo();
    }

}
